#include <stdio.h>
int main()
{
    // 'a'字符 "a"字符串
    char arr[10] = {'h', 'e', 'l', 'l', 'o'};
    for (int i = 0; i < 10; i++)
    {
        printf("%c", arr[i]);
    }
    printf("\n");
    printf("================================\n");
    char arr1[] = {'h', 'e', 'l', 'l', 'o', '\0'};
    char arr2[] = {"hello"};
    for (int i = 0; i < 5; i++)
    {
        printf("arr1[%d]=%c  ", i, arr[i]);
        printf("arr2[%d]=%c\n", i, arr[i]);
    }
    printf("================================\n");
    printf("%d %d\n", sizeof(arr1), sizeof(arr2));

    printf("%s\n", "hello");
    printf("%s\n", arr);
    printf("%s\n", arr1);
    printf("%s\n", arr2);

    // 字符数组 和字符串的区别 字符数组最后面会有一个 \0
    //%s输出字符串 从字符数组的第一个元素开始输入 一直到遇到\0结束
}